//
//  WXTableViewViewController.h
//  WXUIKit
//
//  Created by Daly Dai on 12-7-14.
//  Copyright (c) 2012年 baidu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "EGORefreshTableFooterView.h"
#import "EGORefreshTableHeaderView.h"
//#import "NCViewController.h"

#import "MBProgressHUD.h"
#import "PullTableView.h"

@interface LVBaseTableView :UIView <UITableViewDelegate, UITableViewDataSource,EGORefreshTableFooterDelegate, EGORefreshTableHeaderDelegate,MBProgressHUDDelegate,PullTableViewDelegate>
{
    NSInteger currentPage;
	BOOL isPullLoadMore;
    BOOL isLoading;
    EGORefreshTableFooterView *refreshFooterView;
	EGORefreshTableHeaderView *refreshHeaderView;
}

@property(nonatomic,copy) UIView *waitingLoadDataView;
@property(nonatomic,retain) UIViewController *parentViewController;// 当前View所属的控制器
//modified by lizujian begin  2013.3.21
//将UITableView换成PullTableView
@property(nonatomic,retain) UITableView *refreshFooterView;
@property(nonatomic,retain) PullTableView *baseTableView;
//modified end

// add pull down view for refresh
- (void)addPullRefresh;
// add pull up view for loading more
- (void)addPullLoadMore;


- (void)showLoading;
- (void)hiddenLoading;

- (void)refreshData;
- (void)loadMoreData;


- (void)finishLoadMoreData;
- (void)finishRefreshingData;

// 下拉/上拉操作数据获取完成后的处理
-(void)refreshDataPostHandler;

- (void)noMoreData;


- (void)setTableHeaderView:(UIView*)headerView;
@end
